package com.xm.demos.web;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//@FeignClient(name = "xm-application-01", url = "http://localhost:8082")
@FeignClient(name = "xm-application-01")
public interface Application01Client {
    @RequestMapping("/api/test/{id}")
    @ResponseBody
    String api(@PathVariable("id") Integer id);
}
